viewportCoordinates

Converts Swing screen pixel coordinates to GL viewport coordinates by applying the screen density factor.

Return

The converted coordinates in GL viewport pixels.

Parameters

x

The X coordinate in Swing screen pixels.

y

The Y coordinate in Swing screen pixels.